package com.yh.csx.event.store.gateway.backup.dataobject;

import lombok.Data;

import javax.persistence.*;
import java.util.Date;

/**
 * @author zhangsheng
 * @date 2021/8/11 18:54
 */
@Data
@Entity
@Table(name = "biz_event_result_bak")
public class BizEventResultBakDo {
    private String id;
    private String eventId;
    private String groupName;
    private String topic;
    private String appName;
    private String tag;
    private String ipAddress;
    private Integer status;
    private Integer retryTimes;
    private String creator;
    private String remark;
    private String updater;
    private Date createTime;
    private Date updateTime;
    private Integer errorType;
    private String stackMsg;
    @Basic
    @Column(name = "stack_context")
    private String stackException;

    @Id
    @GeneratedValue(generator = "jpa-uuid")
    @Column(name = "id", nullable = false)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "event_id", nullable = false, length = 60)
    public String getEventId() {
        return eventId;
    }

    public void setEventId(String eventId) {
        this.eventId = eventId;
    }

    @Basic
    @Column(name = "group_name", nullable = false, length = 100)
    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    @Basic
    @Column(name = "topic", nullable = false, length = 100)
    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    @Basic
    @Column(name = "app_name", nullable = false, length = 100)
    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    @Basic
    @Column(name = "tag", nullable = false, length = 100)
    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    @Basic
    @Column(name = "status", nullable = false)
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Basic
    @Column(name = "retry_times", nullable = false)
    public Integer getRetryTimes() {
        return retryTimes;
    }

    public void setRetryTimes(Integer retryTimes) {
        this.retryTimes = retryTimes;
    }

    @Basic
    @Column(name = "remark", nullable = false, length = 200)
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Basic
    @Column(name = "creator", nullable = false, length = 100)
    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    @Basic
    @Column(name = "updater", nullable = false, length = 100)
    public String getUpdater() {
        return updater;
    }

    public void setUpdater(String updater) {
        this.updater = updater;
    }

    @Basic
    @Column(name = "create_time", nullable = false)
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "update_time", nullable = false)
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Basic
    @Column(name = "error_type", nullable = false)
    public Integer getErrorType() {
        return errorType;
    }

    public void setErrorType(Integer errorType) {
        this.errorType = errorType;
    }

    @Basic
    @Column(name = "stack_context")
    public String getStackMsg() {
        return stackMsg;
    }

    public void setStackMsg(String stackContext) {
        this.stackMsg = stackContext;
    }

    @Basic
    @Column(name = "ip_address", nullable = false, length = 200)
    public String getIpAddress() {
        return ipAddress;
    }

    public void setIpAddress(String ipAddress) {
        this.ipAddress = ipAddress;
    }
}
